<!DOCTYPE html>
<html>
<head>
	<title>二七君的图书馆</title>
</head>
<body>

	{% if form.errors %}
	<p>密码错误，请再试一次。</p>
	{% endif %}

	<form method="post" action="{% url 'users:login' %}">
		{% csrf_token %}
		{{ form.as_p }}

		<button name="submit" id="login_button">登录</button>
		<input type="hidden" name="next" value="{% url 'libraries:index' %}" />
	</form>
	<a href="{% url 'users:register' %}"><button id="register_button">注册</button></a>

	<style type="text/css">
		#register_button
		{
	    	display: inline-block;
    		color: #FFF;
    		background-color: #66ccff;
    		font-weight: 700;
    		font-size: 20px;
    		text-align: center;
    		padding-left: 10px;
    		padding-right: 10px;
    		padding-top: 3px;
    		padding-bottom: 4px;
    		text-decoration: none;
    		margin-left: 5px;
    		margin-top: 0;
    		margin-bottom: 5px;
    		border: 1px solid #aaa;
    		border-radius: 5px;
    		white-space: nowrap;
    		position:fixed;
    		top:260px;
    		right:800px;
		}
		#login_button
		{
	    	display: inline-block;
    		color: #FFF;
    		background-color: #66ccff;
    		font-weight: 700;
    		font-size: 20px;
    		text-align: center;
    		padding-left: 10px;
    		padding-right: 10px;
    		padding-top: 3px;
    		padding-bottom: 4px;
    		text-decoration: none;
    		margin-left: 5px;
    		margin-top: 0;
    		margin-bottom: 5px;
    		border: 1px solid #aaa;
    		border-radius: 5px;
    		white-space: nowrap;
    		position:fixed;
    		top:260px;
    		right:902px;
		}
	</style>

</body>
</html>